/**
 *
 * Created by hzq16239 on 2016/1/22.
 */

'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var connect = require('../configs/configs.js').mongooseCollection;

var BeaconMapSchema = new Schema({
    name:String,
    address:String,
    information:{
        department:[String],
        intro:String,
        business:String,
        connection:{
            telephone:Number,
            email:String
        }
    },
    writeTime:{type:Date,index:true}
},{
    collection:'beaconMap',
    versionKey:false
});

var BeaconMap = connect.model('BeaconMap',BeaconMapSchema);

module.exports = BeaconMap;